<div id="middle">
	<div id="container"></div>	
	<div id="container">
		<div class="box53">
			<h1><span><?php print $this->topCategory->title ?></span> / <br><?php print $this->subCategory->title?></h1>
		</div>
		<div id="sideLeft10">
			<?php if (isset($this->preProduct->id)) {?><span>Ctrl + ←  <a href="<?php print $this->preProduct->getUrl() ?>"> &lt; назад </a></span><?php }?>
			<div id="sidebar-menu-gallery">
				<div class="productGallery">
					<?php $c = 0; 
					foreach($this->product->images as $img) { 
							$first = $c % 2 == 0; 
					 		if($first) { ?>
					 			<div class="gallery-row">
					 		<?php } ?>
							<div style="float: left; max-width: 100px;" class="gallery-col galerry-img <?php print $first ? ' first-img' : ''; print $c == 0 ? ' active' : ''; ?>" img-name="<?php print $img->img_src ?>">
								<?php print $this->center('<img src="'.$img->getSmallImage().'" />',85,85) ?> 
							</div>
							<?php if(($c+1)%2 == 0 || ($c+1) == sizeof($this->product->images)) { ?>
								<div class="clear"></div>
								</div>
							<?php } ?>
					<?php $c ++; } ?>
				</div>
			</div>
		</div>
		<div id="content-app1">
			<div class="text">
				<div class="text">			
					<div class="entry2">
						<h1><?php print $this->product->authors_name?></h1>
						<p><?php print $this->product->name ?></p>
						<a href="<?php print $this->author->Url() ?>">Усі роботи автора</a>
						
						<?php ob_start(); ?>	
						<img id="img-display" src="<?php //print $this->product->images[0]->getBigImg() ?>" />
						<?php print $this->center(ob_get_clean(), 330, 330); ?>
						<div align="center" class="add">
							<?php print $this->product->getBuyButton() ?>
						</div></br>
						<a href="#">Роботу на цвяшок</a>
					</div>
				</div>
			</div>
		</div>
		<div id="sideRight10">
			<div class="sideRight10middle">
				<?php if ($this->nextProduct->id != $this->product->id) {?><span><a href="<?php print $this->nextProduct->getUrl() ?>">вперед &gt; </a> Ctrl + → </span><?php }?>
				<p><?php print $this->product->descript?></p>
				<div class="dodInfa">
					<p>#<?php print $this->product->code ?></p>
					<p>Полотно, Олія</p>
					<p><?php print $this->product->meter?></p>
					<p>Без рами</p>
				</div>
				<span class="ProductPrice"><?php print $this->product->price ?> <img alt="price" src="/image/catalog/grn_big.gif"></span>
			</div>
		</div>
	</div>	
</div>